MessageData

@Serializable
data class MessageData(val action: RealtimeService.RealtimeActionType, val record: JsonElement?)

The data sent when a realtime event is emitted

Constructors

Link copied to clipboard
constructor(action: RealtimeService.RealtimeActionType, record: JsonElement?)

Properties

Link copied to clipboard
Link copied to clipboard
val record: JsonElement?

Functions

Link copied to clipboard
inline fun <T> parseRecord(json: Json = Json): T

Serializes the record emitted to type T Used to get the record from an event